SUBDIRS = lib_finder

AM_CPPFLAGS = $(WX_CXXFLAGS) \
		$(CB_SQUIRREL_CFLAGS) \
		-I$(top_srcdir)/src/include \
		-I$(top_srcdir)/src/sdk/wxscintilla/include \
		-I$(srcdir)/../wxContribItems/wxFlatNotebook/include \
		-I$(top_srcdir)/src/include/scripting/bindings

pluginlibdir = $(pkglibdir)/plugins

pluginlib_LTLIBRARIES = liblib_finder.la

liblib_finder_la_LDFLAGS = @MODULE_SHARED_LDFLAGS@ -version-info 0:1:0 -no-undefined -avoid-version

liblib_finder_la_LIBADD = ../../../sdk/libcodeblocks.la \
		../wxContribItems/wxFlatNotebook/libwxflatnotebook.la \
		$(WX_LIBS) \
		$(CB_TINYXML_LIBS)

liblib_finder_la_SOURCES = \
		librariesdlg.cpp \
		dirlistdlg.cpp \
		projectmissinglibs.cpp \
		headersdetectordlg.cpp \
		webresourcesmanager.cpp \
		projectconfiguration.cpp \
		resultmap.cpp \
		libraryresult.cpp \
		projectconfigurationpanel.cpp \
		pkgconfigmanager.cpp \
		librarydetectionmanager.cpp \
		libselectdlg.cpp \
		processingdlg.cpp \
		defsdownloaddlg.cpp \
		lib_finder.cpp

noinst_HEADERS = \
		librariesdlg.h \
		projectconfiguration.h \
		dirlistdlg.h \
		lib_finder.h \
		projectmissinglibs.h \
		webresourcesmanager.h \
		defsdownloaddlg.h \
		libraryresult.h \
		libselectdlg.h \
		headersdetectordlg.h \
		librarydetectionmanager.h \
		pkgconfigmanager.h \
		resultmap.h \
		processingdlg.h \
		librarydetectionconfig.h \
		projectconfigurationpanel.h

EXTRA_DIST = \
	$(srcdir)/*.cbp \
	$(srcdir)/update* \
	readme.txt \
	manifest.xml \
	$(srcdir)/wxsmith/*.wxs

pkgdata_DATA = lib_finder.zip
CLEANFILES = $(pkgdata_DATA)

lib_finder.zip: manifest.xml
	PWD=`pwd` cd $(srcdir) && zip $(PWD)/lib_finder.zip manifest.xml > /dev/null
